#include "../begonia.h"
#include "condbullet.h"

condbullet::condbullet(double tx,double ty,double tr,double tvx,double tvy,bullet *h):bullet(tx,ty,tr,tvx,tvy,h)
    {
        on=true;
    }
void condbullet::clone(bullet *h)
    {
        condbullet *a=new condbullet(x,y,r,vx,vy,h);
        a->c_r=c_r;
        a->c_g=c_g;
        a->c_b=c_b;
    }
bool condbullet::move()
    {
        return true;
    }
bool condbullet::judge()
    {
        return on&&bullet::judge();
    }
    void condbullet::show()
    {
        if(on) bullet::show();
    }
    int condbullet::incb()
    {
        if(on&&bullet::incb()) return 1;
        return 0;
    }

